<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jQuery Table AddRow Plugin</title>
<meta name="google-site-verification" content="UxBdCGRJugKG3s2pknH2M5MakqEo2Dm2HE_yKIM6wvo">
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script><script src="Dokumentasi.php_files/ga.js" type="text/javascript"></script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10767095-1");
pageTracker._trackPageview();
} catch(err) {}</script><script type="text/javascript" id="topsy_global_settings">
var topsy_nick="cloudgen",
	topsy_tweet_text="tweet",
	topsy_retweet_text="retweet",
	topsy_order="count,retweet,badge",
	topsy_theme="monochrome",
	topsy_style="big";
</script>
<link href="Dokumentasi.php_files/nb.css" type="text/css" rel="StyleSheet">
<script type="text/javascript" src="Dokumentasi.php_files/topsy.js"></script>
<script id="topsy_json_request-topsy_id11-1" src="Dokumentasi.php_files/retweet-json" type="text/javascript"></script><link href="Dokumentasi.php_files/widget.css" type="text/css" rel="stylesheet"></head>
<body>
<div style="position:absolute;left:-1000px;width:900px;"><a href="http://www.6502.buss.hk/">6502</a>,<a href="http://www.6502.buss.hk/6502-instruction-set">6502 Instruction Set</a>,<a href="http://www.6502.buss.hk/6502-instruction-set/opcodes">6502 opcodes</a>,<a href="http://www.cloudgen.w0ng.hk/">cloudgen</a>,<a href="http://www.jquery-plugin.buss.hk/">jQuery Plugin</a></div>
<div class="header">
Daily Examplet
<ul class="menu"><li><a class="menulink" href="http://www.examplet.buss.hk/examplet/examplet.php">Main</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/ruby/ruby.php">Ruby</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/python/python.php">Python</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/php/php.php">PHP</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/scala/scala.php">Scala</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/java/java.php">Java</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/jscript/jscript.php">jScript</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/vbscript/vbscript.php">vbscript</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/cs/cs.php">c#</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/vb-net/vb-net.php">vb.net</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/cil/cil.php">CIL</a></li>
<li><a class="menulink" href="http://www.examplet.buss.hk/obj-c/obj-c.php">Objective-C</a></li>
<li><a class="active">jQuery</a></li>
<li><a href="http://examplet.blogspot.com/" class="menulink">Blog</a></li>
</ul>
</div>
<div id="s"><b id="b"><span>
    <h1>jQuery Examplets and Examples</h1> 
    <p>Select the following Topics you are interested</p> 
	<ul>
      <li><a href="http://www.examplet.buss.hk/jquery/jquery.php">List of all jQuery examplets and examples</a></li>
	</ul>
    <ol> 
	  <li><a href="http://www.examplet.buss.hk/jquery/caret.php">Caret Plugin</a></li>
      <li><a href="http://www.examplet.buss.hk/jquery/format.php">Format Plugin</a></li> 
      <li><a href="http://www.examplet.buss.hk/jquery/table.addrow.php">Table AddRow Plugin</a></li> 
	  <li><a href="http://www.examplet.buss.hk/jquery/truncator.php">Truncator Plugin</a></li> 
	  <li><a href="http://www.examplet.buss.hk/jquery/trap.key.php">TrapKey Plugin</a></li> 
	  <li><a href="http://www.examplet.buss.hk/jquery/selector.regex.php">Regular Expression plugin / Selector (regex)</a></li> 
      <li><a href="http://www.examplet.buss.hk/jquery/output.php">Output Plugin</a></li> 
      <li><a href="http://www.examplet.buss.hk/jquery/loader.php">Loader Plugin</a></li> 
	  <li><a href="http://www.examplet.buss.hk/jquery/mattglass.php">Matt Glass Plugin</a></li>
	  <li><a href="http://www.examplet.buss.hk/jquery/lens.php">Lens Plugin</a></li>
	  <li><a href="http://www.examplet.buss.hk/jquery/clipped.image.php">ClippedImage Plugin</a></li>
	  <li><a href="http://www.examplet.buss.hk/jquery/defaultText.php">DefaultText Plugin</a></li>
	  <li><a href="http://www.examplet.buss.hk/jquery/simple.tree-node.php">Simple Tree-node</a></li>
	  <li><a href="http://www.examplet.buss.hk/jquery/simple.tree-set.php">Simple Tree-set</a></li>
	  <li><a href="http://www.examplet.buss.hk/jquery/simple.zoomGlass.php">Simple zoomGlass</a></li>	  
    </ol>
</span></b></div>
<h1>jQuery Table AddRow plugin</h1>
<h2>Description</h2>
<div id="topsy_id11-1" class="topsy_widget_data topsy_theme_monochrome" style="background-image: url(&quot;data:text/plain,%7B%0A%22url%22%3A%22http%3A//cloudgen.w0ng.hk/jquery/table.addrow.php%22%2C%0A%22title%22%3A%22jQuery%20Table%20AddRow%20Plugin%22%2C%0A%22theme%22%3A%20%22monochrome%22%0A%7D&quot;);"><div class="topsy-big" classname="topsy-big"><a href="http://topsy.com/cloudgen.w0ng.hk/jquery/table.addrow.php?utm_source=button" class="topsy-big-total snap_noshots" classname="topsy-big-total snap_noshots"><span class="topsy-big-count" classname="topsy-big-count"><span class="topsy-big-num" classname="topsy-big-num">5</span><span class="topsy-big-unit" classname="topsy-big-unit">tweets</span></span></a><a href="http://button.topsy.com/retweet?nick=cloudgen&amp;url=http%3A%2F%2Fcloudgen.w0ng.hk%2Fjquery%2Ftable.addrow.php&amp;title=jQuery%20Table%20AddRow%20Plugin" target="_blank" class="topsy-big-retweet snap_noshots" classname="topsy-big-retweet snap_noshots">retweet</a></div></div>
<p>If you have ever designed a form allowing user entering more than one
 email? This plugin should help you. It provides the function for adding
 the add row and delete row dynamicly inside a table:</p>
<p></p>
<h2>Update</h2>
<p>2010-3-16: Being reported by <span style="font-weight:bold;font-style:italic;">Simon Wallmann</span>, this plugin cannot work properly in 1.4.2. I have found similar cases in <a href="http://forum.jquery.com/topic/jquery-1-4-2-data-unexpected-behaviour">http://forum.jquery.com/topic/jquery-1-4-2-data-unexpected-behaviour</a> and
a ticket have been submitted to <a href="http://dev.jquery.com/ticket/6166">http://dev.jquery.com/ticket/6166</a>
 already. This problem will be fixed in 1.4.3 version. By the way, I've 
made the adaption to jQuery 1.4.2 before 1.4.3 is launched. If you are 
going to use jQuery 1.4.2, please make sure to use the latest version 
1.02 of this plugin.</p>
<p></p>
<p>2010-3-5: <a href="http://www.examplet.buss.hk/jquery/table.addrow.with.rating.php">Demonstration on using jQuery Table AddRow Plugin with Rating plugin.</a></p>
<p>2010-3-5: <a href="http://www.examplet.buss.hk/jquery/table.addrow.with.autocomplete.php">Demonstration on using jQuery Table AddRow Plugin with Autocomplete plugin</a></p>
<p>This plugin has been largely updated (adding a lot of parameters, and
 in the same time, keeping the support of old functionality) on February
 19,2010 (Version 1.1). Since I am still busy with the daily job, I will
 summarize all the parameters later on. For those who want to use the 
old version (a lighter) please go to the download session for Version 
1.0.</p>
<p></p>
<p>This plugin has been updated on October 23,2009 (Version 1.0), with the following enhancement:</p>
<ol>
<li>For those platform that cannot handle multiple fields with single field name, I have added "inputBoxAutoNumber" parameter. 
<ul>
<li>By setting "inputBoxAutoNumber" to true (i.e. $(".addRow").btnAddRow({inputBoxAutoNumber:true});), </li>
<li>all the &lt;input&gt; and &lt;textarea&gt; tags' name attribute will be changed automatically.</li>
<li>A row number (starting from 1) will be attached after the original name.</li>
<li>For example, &lt;input type="text" name="data"/&gt; will be 
automatically changed to &lt;input type="text" name="data1"/&gt; for the
 first row, &lt;input type="text" name="data2"/&gt; for the second row 
and so on.</li>
</ul>
</li><li>A new parameter "displayRowCountTo" have been added to allow 
any &lt;input&gt; with the corresponding classname store the number of 
row value in it's value attribute. For instance,</li>
<ul>
<li>$(".addRow").btnAddRow({displayRowCountTo:"rowCount"}); </li>
<li>This instruction told the plugin to calculate the total number of row and store it in any input box with class name "rowCount" </li>
</ul>
<li>Fix the bug in case similar to Example 1: the new "add" button's value will no longer be cleared.</li>
</ol>
<p>This plugin has been updated on October 2, 2009, for the following modifications:</p>
<ol>
<li>Add oddRowCSS and evenRowCSS to define the style in alternative rows inside the table. see #10</li>
<li>Remove the Delete button in last row when using autoAddRow function.</li>
</ol>
<p>This plugin has been updated on September 29, 2009, for the following modifications:</p>
<ol>
<li>Add rowNumColumn property, allowing you to define any column to show the row number. See #8</li>
<li>Add autoAddRow(), allowing any table expand automatically without pressing the add button.  See #9</li>
<li>Clear textarea in the new row automatic.</li>
</ol>
<p>This plugin has been updated on September 15, 2009, for the following modifications:</p>
<ol>
<li>The Delete button will be display if there are more than one rows initially. Thanks for <span style="font-weight:bold;font-style:italic;">Jeff White</span> for telling me this bug.</li>
<li>The Add Row button will be disabled automatically when the number of row reaches upper limit</li>
<li>Add ignoreClass parameters, see Example #5</li>
<li>Add call back function for further processing see Example #6</li>
<li>** Add compatibility to other components (<a href="http://www.examplet.buss.hk/jquery/defaultText.php">defaultText plugin</a>, etc.) with data("init") function, see #7</li>
</ol>
<p></p>
<h2>Demonstration</h2>
<p>Example #1</p>
<table border="1">
<tbody><tr><td colspan="4">Enter Your Information</td></tr>
<tr class="cloneRow3441"><td>Email</td><td><input value="s" size="24" type="text"></td>
<td><input class="addRow addRow3441" value="Add Row" type="button"></td>
<td><input style="display: inline;" class="delRow delRow3441" value="Delete Row" type="button"></td></tr>
<tr class="cloneRow3441"><td>Email</td><td><input value="2" size="24" type="text"></td>
<td><input class="addRow addRow3441" value="Add Row" type="button"></td>
<td><input style="" class="delRow delRow3441" value="Delete Row" type="button"></td></tr><tr class="cloneRow3441"><td>Email</td><td><input value="s" size="24" type="text"></td>
<td><input class="addRow addRow3441" value="Add Row" type="button"></td>
<td><input style="" class="delRow delRow3441" value="Delete Row" type="button"></td></tr><tr class="cloneRow3441"><td>Email</td><td><input size="24" type="text"></td>
<td><input class="addRow addRow3441" value="Add Row" type="button"></td>
<td><input style="" class="delRow delRow3441" value="Delete Row" type="button"></td></tr>
</tbody></table>
<div class="syntaxhighlighter " id="highlighter_823440"><div class="bar                                                            "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_823440_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_823440" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"4"</code><code class="plain">&gt;Enter Your Information&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">(</code><code class="keyword">function</code><code class="plain">($){</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(document).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".addRow"</code><code class="plain">).btnAddRow();</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">})(jQuery);</code></span></span></div><div class="line alt1"><code class="number">19.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>Example #2</p>
<table border="1">
<tbody><tr><td colspan="3">Enter Your Information<input class="addRow addRow5909" value="Add Row" type="button"></td></tr>
<tr class="cloneRow5909"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow delRow5909" value="Delete Row" type="button"></td></tr>
<tr class="cloneRow5909"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow delRow5909" value="Delete Row" type="button"></td></tr><tr class="cloneRow5909"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="" class="delRow delRow5909" value="Delete Row" type="button"></td></tr><tr class="cloneRow5909"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="" class="delRow delRow5909" value="Delete Row" type="button"></td></tr>
</tbody></table>
<div class="syntaxhighlighter " id="highlighter_563658"><div class="bar                  "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_563658_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_563658" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code><code class="plain">&gt;Enter Your Information</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">(</code><code class="keyword">function</code><code class="plain">($){</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(document).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".addRow"</code><code class="plain">).btnAddRow();</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">})(jQuery);</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>

<p>Example #3</p>
<table border="1">
<tbody><tr><td colspan="3">Enter Your Information</td></tr>
<tr class="cloneRow9275"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow delRow9275" value="Delete Row" type="button"></td></tr>
<tr class="cloneRow9275"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow delRow9275" value="Delete Row" type="button"></td></tr>
<tr><td colspan="3" align="right"><input class="addRow addRow9275" value="Add Row" type="button"></td></tr>
</tbody></table>
<div class="syntaxhighlighter " id="highlighter_887871"><div class="bar       "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_887871_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_887871" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code><code class="plain">&gt;Enter Your Information&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code> <code class="plain">align=</code><code class="string">"right"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">(</code><code class="keyword">function</code><code class="plain">($){</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(document).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".addRow"</code><code class="plain">).btnAddRow();</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">})(jQuery);</code></span></span></div><div class="line alt1"><code class="number">19.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>Example #4</p>
<table border="1">
<tbody><tr><td colspan="3">Enter Your Information (Max 3 Email)</td></tr>
<tr class="cloneRow2244"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow delRow2244" value="Delete Row" type="button"></td></tr>
<tr class="cloneRow2244"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow delRow2244" value="Delete Row" type="button"></td></tr>
<tr><td colspan="3" align="right"><input class="addRow-Max3 addRow2244" value="Add Row" type="button"></td></tr>
</tbody></table>
<div class="syntaxhighlighter " id="highlighter_763232"><div class="bar  "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_763232_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_763232" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code><code class="plain">&gt;Enter Your Information (Max 3 Email)&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code> <code class="plain">align=</code><code class="string">"right"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow-Max3"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">(</code><code class="keyword">function</code><code class="plain">($){</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(document).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".addRow-Max3"</code><code class="plain">).btnAddRow({maxRow:3});</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">})(jQuery);</code></span></span></div><div class="line alt1"><code class="number">19.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>Example #5</p>
<table border="1">
<tbody><tr><td>Name</td><td>Email (Max 5 Email)</td><td>Comment</td></tr>
<tr class="cloneRow6375"><td class="noClone">John</td>
<td><input size="24" value="default1@email.com" type="text"></td>
<td><textarea class="noClone">This is the first Email</textarea><input style="display: inline;" class="delRow delRow6375" value="Delete Row" type="button"></td></tr>
<tr class="cloneRow6375"><td class="noClone">Mary</td>
<td><input size="24" value="default2@email.com" type="text"></td>
<td><textarea class="noClone">This is the second Email</textarea><input style="display: inline;" class="delRow delRow6375" value="Delete Row" type="button"></td></tr><tr class="cloneRow6375"><td class="noClone"> </td>
<td><input size="24" type="text"></td>
<td><textarea class="noClone"></textarea><input style="" class="delRow delRow6375" value="Delete Row" type="button"></td></tr>
<tr><td colspan="3" align="right"><input class="addRow-ignoreClass addRow6375" value="Add Row" type="button"></td></tr>
</tbody></table>
<div class="syntaxhighlighter " id="highlighter_746189"><div class="bar   "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_746189_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_746189" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Name&lt;/td&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;Comment&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td class=</code><code class="string">"noClone"</code><code class="plain">&gt;John&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code> <code class="plain">value=</code><code class="string">"default1@email.com"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;textarea class=</code><code class="string">"noClone"</code><code class="plain">&gt;This is the first Email&lt;/textarea&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code> <code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td class=</code><code class="string">"noClone"</code><code class="plain">&gt;Mary&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code>&nbsp; <code class="plain">value=</code><code class="string">"default2@email.com"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;textarea class=</code><code class="string">"noClone"</code><code class="plain">&gt;This is the second Email&lt;/textarea&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code> <code class="plain">align=</code><code class="string">"right"</code><code class="plain">&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow-ignoreClass"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">(</code><code class="keyword">function</code><code class="plain">($){</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(document).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".addRow-ignoreClass"</code><code class="plain">).btnAddRow({maxRow:5,ignoreClass:</code><code class="string">"noClone"</code><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">})(jQuery);</code></span></span></div><div class="line alt1"><code class="number">19.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>Example #6</p>
<table border="1">
<tbody><tr><td colspan="3">Enter Your Email (Max 3 rows)</td></tr>
<tr class="cloneRow4977"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow delRow4977" value="Delete Row" type="button"></td></tr>
<tr class="cloneRow4977"><td>Email</td><td><input size="24" type="text"></td>
<td><input style="display: inline;" class="delRow-callBack delRow4977" value="Delete Row" type="button"></td></tr>
<tr><td colspan="3" align="right"><input class="addRow-callBack addRow4977" value="Add Row" type="button"></td></tr>
</tbody></table>
<div class="syntaxhighlighter " id="highlighter_860611"><div class="bar  "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_860611_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_860611" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code><code class="plain">&gt;Enter Your Email (Max 3 rows)&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow-callBack"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"3"</code> <code class="plain">align=</code><code class="string">"right"</code><code class="plain">&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow-callBack"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">(</code><code class="keyword">function</code><code class="plain">($){</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(document).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".delRow-callBack"</code><code class="plain">).btnDelRow(</code><code class="keyword">function</code><code class="plain">(row){</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(row) alert(row.html());</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">".addRow-callBack"</code><code class="plain">).btnAddRow({maxRow:3},</code><code class="keyword">function</code><code class="plain">(row){</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(row) alert(row.html());</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">19.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">20.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">})(jQuery);</code></span></span></div><div class="line alt1"><code class="number">21.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>Example #7 : Mixing with <a href="http://www.examplet.buss.hk/jquery/defaultText.php">defaultText plugin</a></p>
<p></p>
<table border="1">
<tbody><tr><td colspan="4">Enter Your Information</td></tr>
<tr class="cloneRow7241"><td>Email</td><td><input value="Enter your Email here." style="color: rgb(170, 170, 170);" size="24" class="useDefault DefaultText3688" rel="Enter your Email here." type="text"></td>
<td><input class="addRow addRow7241" value="Add Row" type="button"></td>
<td><input style="display: inline;" class="delRow delRow7241" value="Delete Row" type="button"></td></tr>
<tr class="cloneRow7241"><td>Email</td><td><input value="Enter your Email here." style="color: rgb(170, 170, 170);" size="24" class="useDefault DefaultText8541" rel="Enter your Email here." type="text"></td>
<td><input class="addRow addRow7241" value="Add Row" type="button"></td>
<td><input style="display: inline;" class="delRow delRow7241" value="Delete Row" type="button"></td></tr>
</tbody></table>
<p>&nbsp;</p>
<div class="syntaxhighlighter " id="highlighter_106048"><div class="bar  "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_106048_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_106048" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td colspan=</code><code class="string">"4"</code><code class="plain">&gt;Enter Your Information&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code> <code class="plain">class=</code><code class="string">"useDefault"</code> <code class="plain">rel=</code><code class="string">"Enter your Email here."</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Email&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"24"</code> <code class="plain">class=</code><code class="string">"useDefault"</code> <code class="plain">rel=</code><code class="string">"Enter your Email here."</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addRow"</code> <code class="plain">value=</code><code class="string">"Add Row"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Delete Row"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.defaultText.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">$(</code><code class="string">"document"</code><code class="plain">).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".useDefault"</code><code class="plain">).addDefaultText();</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".addRow"</code><code class="plain">).btnAddRow();</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">19.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p></p>
<p>Example #8 : define any column to show the row number</p>
<p></p>
<table border="1">
<tbody><tr><th>#</th><th>Your comment</th>
<th><input class="addComment addRow9311" value="Add More Comment" type="button"></th></tr>
<tr class="cloneRow9311"><td>Comment #<span class="rowNumber">1</span></td><td><textarea></textarea></td>
<td>&nbsp;<input style="display: inline;" class="delRow delRow9311" value="Remove" type="button"></td></tr><tr class="cloneRow9311"><td>Comment #<span class="rowNumber">2</span></td><td><textarea></textarea></td>
<td>&nbsp;<input style="" class="delRow delRow9311" value="Remove" type="button"></td></tr><tr class="cloneRow9311"><td>Comment #<span class="rowNumber">3</span></td><td><textarea></textarea></td>
<td>&nbsp;<input style="" class="delRow delRow9311" value="Remove" type="button"></td></tr><tr class="cloneRow9311"><td>Comment #<span class="rowNumber">4</span></td><td><textarea></textarea></td>
<td>&nbsp;<input style="" class="delRow delRow9311" value="Remove" type="button"></td></tr><tr class="cloneRow9311"><td>Comment #<span class="rowNumber">5</span></td><td><textarea></textarea></td>
<td>&nbsp;<input style="" class="delRow delRow9311" value="Remove" type="button"></td></tr><tr class="cloneRow9311"><td>Comment #<span class="rowNumber">6</span></td><td><textarea></textarea></td>
<td>&nbsp;<input style="" class="delRow delRow9311" value="Remove" type="button"></td></tr>
</tbody></table>
<p>&nbsp;</p>
<div class="syntaxhighlighter " id="highlighter_668238"><div class="bar "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_668238_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_668238" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;th&gt;</code><code class="preprocessor">#&lt;/th&gt;&lt;th&gt;Your comment&lt;/th&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;th&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"addComment"</code> <code class="plain">value=</code><code class="string">"Add More Comment"</code><code class="plain">/&gt;&lt;/th&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Comment</code> <code class="preprocessor">#&lt;span class="rowNumber"&gt;1&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;textarea&gt;&lt;/textarea&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&nbsp;&lt;input type=</code><code class="string">"button"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">value=</code><code class="string">"Remove"</code><code class="plain">/&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.defaultText.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">$(</code><code class="string">"document"</code><code class="plain">).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".addComment"</code><code class="plain">).btnAddRow({rowNumColumn:</code><code class="string">"rowNumber"</code><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>&nbsp;</p>
<p>Example #9 : Auto-expand row without pressing the add button</p>
<table class="autoTable" border="1">
<tbody><tr><td>Your Name</td>
<td>Your Age</td><td>&nbsp;</td></tr>
<tr class="cloneRow5013"><td><input class="autoAdd5013" size="25" type="text"></td>
<td><input class="autoAdd5013" size="25" type="text"></td><td><input style="display: none;" value="Delete" class="delRow delRow5013 autoAdd5013" type="button"></td></tr>
</tbody></table>
<p>&nbsp;</p>
<div class="syntaxhighlighter " id="highlighter_648367"><div class="bar   "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_648367_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_648367" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code> <code class="plain">class=</code><code class="string">"autoTable"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Your Name&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;Your Age&lt;/td&gt;&lt;td&gt;&nbsp;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"25"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"25"</code><code class="plain">/&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">value=</code><code class="string">"Delete"</code> <code class="plain">class=</code><code class="string">"delRow"</code><code class="plain">/&gt;&lt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">$(</code><code class="string">"document"</code><code class="plain">).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".autoTable"</code><code class="plain">).tableAutoAddRow({autoAddRow:</code><code class="keyword">true</code><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>&nbsp;</p>
<p>Example #10 : Alternative Row Style</p>
<style>
.atable{
	border-collapse:collapse;
	border:1px solid #AAA;
	margin-left:10px;
}
.atable th{
	border:1px solid #AAF;
	background:#BFBFFF;
	font-weight:bold;
}
.atable td{
	padding:4px;
	border:1px solid #AAF;
}
.oddRow{
	background:#FFFFFF;
}
.evenRow{
	background:#DFDFFF;
}
</style>
<table class="atable" border="1">
<tbody><tr class="evenRow"><th colspan="2">Input your data</th>
<th><input value="Add Row" class="alternativeRow addRow7716" type="button"></th></tr>
<tr class="cloneRow7716 oddRow"><td>Your Data</td><td><input size="25" type="text"></td>
<td><img style="display: inline;" src="Dokumentasi.php_files/cross.gif" class="delRow delRow7716" border="0"></td></tr>
<tr class="cloneRow7716 evenRow"><td>Your Data</td><td><input size="25" type="text"></td>
<td><img style="" src="Dokumentasi.php_files/cross.gif" class="delRow delRow7716" border="0"></td></tr><tr class="cloneRow7716 oddRow"><td>Your Data</td><td><input size="25" type="text"></td>
<td><img style="" src="Dokumentasi.php_files/cross.gif" class="delRow delRow7716" border="0"></td></tr><tr class="cloneRow7716 evenRow"><td>Your Data</td><td><input size="25" type="text"></td>
<td><img style="" src="Dokumentasi.php_files/cross.gif" class="delRow delRow7716" border="0"></td></tr>
</tbody></table>
<p>&nbsp;</p>
<div class="syntaxhighlighter " id="highlighter_699765"><div class="bar        "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_699765_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_699765" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">01.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;style&gt;</code></span></span></div><div class="line alt2"><code class="number">02.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">.atable{</code></span></span></div><div class="line alt1"><code class="number">03.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">border-collapse:collapse;</code></span></span></div><div class="line alt2"><code class="number">04.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">border:1px solid</code> <code class="preprocessor">#AAA;</code></span></span></div><div class="line alt1"><code class="number">05.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">margin-left:10px;</code></span></span></div><div class="line alt2"><code class="number">06.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">07.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">.atable th{</code></span></span></div><div class="line alt2"><code class="number">08.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">border:1px solid</code> <code class="preprocessor">#AAF;</code></span></span></div><div class="line alt1"><code class="number">09.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">background:</code><code class="preprocessor">#BFBFFF;</code></span></span></div><div class="line alt2"><code class="number">10.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">font-weight:bold;</code></span></span></div><div class="line alt1"><code class="number">11.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">12.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">.atable td{</code></span></span></div><div class="line alt1"><code class="number">13.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">padding:4px;</code></span></span></div><div class="line alt2"><code class="number">14.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">border:1px solid</code> <code class="preprocessor">#AAF;</code></span></span></div><div class="line alt1"><code class="number">15.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">16.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">.oddRow{</code></span></span></div><div class="line alt1"><code class="number">17.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">background:</code><code class="preprocessor">#FFFFFF;</code></span></span></div><div class="line alt2"><code class="number">18.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">19.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">.evenRow{</code></span></span></div><div class="line alt2"><code class="number">20.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">background:</code><code class="preprocessor">#DFDFFF;</code></span></span></div><div class="line alt1"><code class="number">21.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">22.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/style&gt;</code></span></span></div><div class="line alt1"><code class="number">23.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;table border=</code><code class="string">"1"</code> <code class="plain">class=</code><code class="string">"atable"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">24.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;th colspan=</code><code class="string">"2"</code><code class="plain">&gt;Input your data&lt;/th&gt;</code></span></span></div><div class="line alt1"><code class="number">25.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;th&gt;&lt;input type=</code><code class="string">"button"</code> <code class="plain">value=</code><code class="string">"Add Row"</code> <code class="plain">class=</code><code class="string">"alternativeRow"</code><code class="plain">/&gt;&lt;/th&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">26.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Your Data&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"25"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">27.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;img src=</code><code class="string">"/images/cross.gif"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">border=</code><code class="string">"0"</code><code class="plain">&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">28.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;tr&gt;&lt;td&gt;Your Data&lt;/td&gt;&lt;td&gt;&lt;input type=</code><code class="string">"text"</code> <code class="plain">size=</code><code class="string">"25"</code><code class="plain">/&gt;&lt;/td&gt;</code></span></span></div><div class="line alt1"><code class="number">29.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;td&gt;&lt;img src=</code><code class="string">"/images/cross.gif"</code> <code class="plain">class=</code><code class="string">"delRow"</code> <code class="plain">border=</code><code class="string">"0"</code><code class="plain">&gt;&lt;/td&gt;&lt;/tr&gt;</code></span></span></div><div class="line alt2"><code class="number">30.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/table&gt;</code></span></span></div><div class="line alt1"><code class="number">31.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt2"><code class="number">32.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code> <code class="plain">src=</code><code class="string">"/js/jquery.table.addrow.js"</code><code class="plain">&gt;&lt;/script&gt;</code></span></span></div><div class="line alt1"><code class="number">33.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">34.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">$(</code><code class="string">"document"</code><code class="plain">).ready(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">35.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".alternativeRow"</code><code class="plain">).btnAddRow({oddRowCSS:</code><code class="string">"oddRow"</code><code class="plain">,evenRowCSS:</code><code class="string">"evenRow"</code><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">36.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">).btnDelRow();</code></span></span></div><div class="line alt1"><code class="number">37.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">38.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div>
<p>&nbsp;</p>
<h2>jQuery Plugin Source Code</h2>
<p>The following is the source code of the jQuery Plugin.</p><p>
</p><div class="syntaxhighlighter " id="highlighter_350742"><div class="bar                                              "><div class="toolbar"><a class="item viewSource" style="width: 16px; height: 16px;" title="view source" href="#viewSource">view source</a><div class="item copyToClipboard"><embed id="highlighter_350742_clipboard" type="application/x-shockwave-flash" title="copy to clipboard" allowscriptaccess="always" wmode="transparent" flashvars="highlighterId=highlighter_350742" menu="false" src="Dokumentasi.php_files/clipboard.htm" height="16" width="16"></div><a class="item printSource" style="width: 16px; height: 16px;" title="print" href="#printSource">print</a><a class="item about" style="width: 16px; height: 16px;" title="?" href="#about">?</a></div></div><div class="lines"><div class="line alt1"><code class="number">001.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;script type=</code><code class="string">"text/javascript"</code><code class="plain">&gt;</code></span></span></div><div class="line alt2"><code class="number">002.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">(</code><code class="keyword">function</code><code class="plain">($){</code><code class="keyword">if</code><code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">$.fn.btnAddRow== </code><code class="string">"undefined"</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">003.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="keyword">var</code> <code class="plain">ExpandableTableList=[],className=</code><code class="string">"ExpandableTable"</code><code class="plain">;</code></span></span></div><div class="line alt2"><code class="number">004.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="keyword">function</code> <code class="plain">ExpandableTable(target,maxRow){</code></span></span></div><div class="line alt1"><code class="number">005.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(target) </code><code class="keyword">this</code><code class="plain">.init(target,maxRow);</code></span></span></div><div class="line alt2"><code class="number">006.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">007.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.init=</code><code class="keyword">function</code><code class="plain">(target,maxRow){</code></span></span></div><div class="line alt2"><code class="number">008.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">ExpandableTableList.push(</code><code class="keyword">this</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">009.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.target=$(target).data(className,</code><code class="keyword">this</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">010.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.maxRow=maxRow;</code></span></span></div><div class="line alt1"><code class="number">011.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.seed=Math.round(Math.random()*10000);</code></span></span></div><div class="line alt2"><code class="number">012.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.onAddRow=[];</code></span></span></div><div class="line alt1"><code class="number">013.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt2"><code class="number">014.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt1"><code class="number">015.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.live=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">016.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code> <code class="plain">(!</code><code class="keyword">this</code><code class="plain">.goLive){</code></span></span></div><div class="line alt1"><code class="number">017.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">var</code> <code class="plain">t=</code><code class="keyword">this</code><code class="plain">;</code></span></span></div><div class="line alt2"><code class="number">018.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.update();</code></span></span></div><div class="line alt1"><code class="number">019.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">".addRow"</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.seed)</code></span></span></div><div class="line alt2"><code class="number">020.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">.live(</code><code class="string">"click"</code><code class="plain">,</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">021.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">var</code> <code class="plain">newRow=t.addRow();</code></span></span></div><div class="line alt2"><code class="number">022.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">023.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">".delRow"</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.seed)</code></span></span></div><div class="line alt2"><code class="number">024.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">.live(</code><code class="string">"click"</code><code class="plain">,</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">025.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">var</code> <code class="plain">oj=$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"."</code><code class="plain">+t.cloneClass),</code></span></span></div><div class="line alt2"><code class="number">026.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">o=oj.clone();</code></span></span></div><div class="line alt1"><code class="number">027.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">oj.hide().find(</code><code class="string">"*"</code><code class="plain">).each(</code><code class="keyword">function</code><code class="plain">(i,v){</code></span></span></div><div class="line alt2"><code class="number">028.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">if</code><code class="plain">($(v).data(</code><code class="string">"destroy"</code><code class="plain">));</code></span></span></div><div class="line alt1"><code class="number">029.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">for</code><code class="plain">(</code><code class="keyword">var</code> <code class="plain">k </code><code class="keyword">in</code> <code class="plain">$(v).data(</code><code class="string">"destroy"</code><code class="plain">)){</code></span></span></div><div class="line alt2"><code class="number">030.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">$(v).data(</code><code class="string">"destroy"</code><code class="plain">)[k](v);</code></span></span></div><div class="line alt1"><code class="number">031.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">032.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">033.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">oj.remove();</code></span></span></div><div class="line alt2"><code class="number">034.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">$(</code><code class="string">".addRow"</code><code class="plain">+t.seed)</code></span></span></div><div class="line alt1"><code class="number">035.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">.attr(</code><code class="string">"disabled"</code><code class="plain">,</code><code class="keyword">false</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">036.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">t.update();</code></span></span></div><div class="line alt1"><code class="number">037.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">(t.deleteCallBack &amp;&amp; $.isFunction(t.deleteCallBack)) </code></span></span></div><div class="line alt2"><code class="number">038.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">t.deleteCallBack(o);</code></span></span></div><div class="line alt1"><code class="number">039.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">040.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">".autoAdd"</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.seed)</code></span></span></div><div class="line alt1"><code class="number">041.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">.live(</code><code class="string">"keyup"</code><code class="plain">,</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">042.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">((</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()==</code><code class="string">"textarea"</code> <code class="plain">&amp;&amp; $(</code><code class="keyword">this</code><code class="plain">).html()!=</code><code class="string">""</code><code class="plain">) ||</code></span></span></div><div class="line alt1"><code class="number">043.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()==</code><code class="string">"textarea"</code> <code class="plain">&amp;&amp; $(</code><code class="keyword">this</code><code class="plain">).val()!=</code><code class="string">""</code><code class="plain">) ||</code></span></span></div><div class="line alt2"><code class="number">044.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()==</code><code class="string">"input"</code> <code class="plain">&amp;&amp; $(</code><code class="keyword">this</code><code class="plain">).val()!=</code><code class="string">""</code><code class="plain">)) t.addRow();</code></span></span></div><div class="line alt1"><code class="number">045.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">046.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.goLive=</code><code class="keyword">true</code><code class="plain">;</code></span></span></div><div class="line alt1"><code class="number">047.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">048.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt1"><code class="number">049.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt2"><code class="number">050.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.updateRowNumber=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">051.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">var</code> <code class="plain">t=</code><code class="keyword">this</code><code class="plain">;</code></span></span></div><div class="line alt2"><code class="number">052.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(t.rowNumColumn){</code></span></span></div><div class="line alt1"><code class="number">053.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+t.cloneClass,t.target).each(</code><code class="keyword">function</code><code class="plain">(j,u){</code></span></span></div><div class="line alt2"><code class="number">054.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">var</code> <code class="plain">n=j+1;</code></span></span></div><div class="line alt1"><code class="number">055.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+t.rowNumColumn,$(u)).each(</code><code class="keyword">function</code><code class="plain">(i,v){</code></span></span></div><div class="line alt2"><code class="number">056.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">if</code><code class="plain">($(v).is(</code><code class="string">":text, textarea"</code><code class="plain">)) </code></span></span></div><div class="line alt1"><code class="number">057.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">$(v).val(n);</code></span></span></div><div class="line alt2"><code class="number">058.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">else</code></span></span></div><div class="line alt1"><code class="number">059.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">$(v).text(n);</code></span></span></div><div class="line alt2"><code class="number">060.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">061.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">062.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">063.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="plain">t</code></span></span></div><div class="line alt2"><code class="number">064.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt1"><code class="number">065.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.updateInputBoxName=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">066.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass,</code><code class="keyword">this</code><code class="plain">.target).each(</code><code class="keyword">function</code><code class="plain">(j,t){</code></span></span></div><div class="line alt1"><code class="number">067.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">var</code> <code class="plain">n=j+1;</code></span></span></div><div class="line alt2"><code class="number">068.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"input,textarea"</code><code class="plain">,$(t)).each(</code><code class="keyword">function</code><code class="plain">(i,v){</code></span></span></div><div class="line alt1"><code class="number">069.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">($(v).attr(</code><code class="string">"name"</code><code class="plain">)!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt2"><code class="number">070.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">var</code> <code class="plain">newName=$(v).attr(</code><code class="string">"name"</code><code class="plain">).replace(/\d+$/,</code><code class="string">""</code><code class="plain">)+n;</code></span></span></div><div class="line alt1"><code class="number">071.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(v).attr(</code><code class="string">"name"</code><code class="plain">,newName);</code></span></span></div><div class="line alt2"><code class="number">072.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">073.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">074.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">075.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt2"><code class="number">076.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt1"><code class="number">077.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.updateInputBoxId=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">078.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">var</code> <code class="plain">t=</code><code class="keyword">this</code><code class="plain">;</code></span></span></div><div class="line alt1"><code class="number">079.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+t.cloneClass,</code><code class="keyword">this</code><code class="plain">.target).each(</code><code class="keyword">function</code><code class="plain">(j,u){</code></span></span></div><div class="line alt2"><code class="number">080.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">var</code> <code class="plain">n=j+1;</code></span></span></div><div class="line alt1"><code class="number">081.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"input,textarea"</code><code class="plain">,$(u)).each(</code><code class="keyword">function</code><code class="plain">(i,v){</code></span></span></div><div class="line alt2"><code class="number">082.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">($(v).attr(</code><code class="string">"id"</code><code class="plain">)!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">083.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">var</code> <code class="plain">newId=$(v).attr(</code><code class="string">"id"</code><code class="plain">).replace(/\d+$/,</code><code class="string">""</code><code class="plain">)+n;</code></span></span></div><div class="line alt2"><code class="number">084.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(v).removeAttr(</code><code class="string">"id"</code><code class="plain">).attr(</code><code class="string">"id"</code><code class="plain">,newId);</code></span></span></div><div class="line alt1"><code class="number">085.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">086.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">087.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">088.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt1"><code class="number">089.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt2"><code class="number">090.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.updateOddRowCSS=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">091.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.oddRowCSS){</code></span></span></div><div class="line alt2"><code class="number">092.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.target.find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.oddRowCSS).removeClass(</code><code class="keyword">this</code><code class="plain">.oddRowCSS);</code></span></span></div><div class="line alt1"><code class="number">093.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.target.find(</code><code class="string">"tr:odd"</code><code class="plain">).addClass(</code><code class="keyword">this</code><code class="plain">.oddRowCSS);</code></span></span></div><div class="line alt2"><code class="number">094.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">095.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt2"><code class="number">096.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt1"><code class="number">097.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.updateEvenRowCSS=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">098.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.evenRowCSS){</code></span></span></div><div class="line alt1"><code class="number">099.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.target.find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.evenRowCSS).removeClass(</code><code class="keyword">this</code><code class="plain">.evenRowCSS);</code></span></span></div><div class="line alt2"><code class="number">100.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.target.find(</code><code class="string">"tr:even"</code><code class="plain">).addClass(</code><code class="keyword">this</code><code class="plain">.evenRowCSS);</code></span></span></div><div class="line alt1"><code class="number">101.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">102.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt1"><code class="number">103.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt2"><code class="number">104.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.updateRowCount=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">105.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.displayRowCountTo){</code></span></span></div><div class="line alt2"><code class="number">106.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">var</code> <code class="plain">count=$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass,</code><code class="keyword">this</code><code class="plain">.target).size();</code></span></span></div><div class="line alt1"><code class="number">107.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.displayRowCountTo,</code><code class="keyword">this</code><code class="plain">.target).each(</code><code class="keyword">function</code><code class="plain">(i,v){</code></span></span></div><div class="line alt2"><code class="number">108.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">var</code> <code class="plain">nn=v.nodeName.toLowerCase();</code></span></span></div><div class="line alt1"><code class="number">109.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">(nn==</code><code class="string">"input"</code> <code class="plain">|| nn==</code><code class="string">"textarea"</code><code class="plain">) </code></span></span></div><div class="line alt2"><code class="number">110.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(v).val(count);</code></span></span></div><div class="line alt1"><code class="number">111.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">else</code></span></span></div><div class="line alt2"><code class="number">112.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(v).html(count);</code></span></span></div><div class="line alt1"><code class="number">113.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">114.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">115.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt2"><code class="number">116.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt1"><code class="number">117.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.update=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">118.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">var</code> <code class="plain">t=</code><code class="keyword">this</code><code class="plain">;</code></span></span></div><div class="line alt1"><code class="number">119.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.delRowButtons=$(</code><code class="string">".delRow"</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.seed,</code><code class="keyword">this</code><code class="plain">.target);</code></span></span></div><div class="line alt2"><code class="number">120.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.delRowButtons.size()==1)</code></span></span></div><div class="line alt1"><code class="number">121.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.delRowButtons.hide();</code></span></span></div><div class="line alt2"><code class="number">122.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">else</code> <code class="plain">{</code></span></span></div><div class="line alt1"><code class="number">123.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.autoAddRow)</code></span></span></div><div class="line alt2"><code class="number">124.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">this</code><code class="plain">.delRowButtons.not(</code><code class="string">":last"</code><code class="plain">).show();</code></span></span></div><div class="line alt1"><code class="number">125.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">else</code></span></span></div><div class="line alt2"><code class="number">126.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">this</code><code class="plain">.delRowButtons.show();</code></span></span></div><div class="line alt1"><code class="number">127.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">128.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.autoAddRow) {</code></span></span></div><div class="line alt1"><code class="number">129.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.target.find(</code><code class="string">".autoAdd"</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.seed).removeClass(</code><code class="string">"autoAdd"</code><code class="plain">+t.seed);</code></span></span></div><div class="line alt2"><code class="number">130.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.target</code></span></span></div><div class="line alt1"><code class="number">131.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">.find(</code><code class="string">"."</code><code class="plain">+t.cloneClass+</code><code class="string">":last"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">132.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">.find(</code><code class="string">"input,textarea"</code><code class="plain">)</code></span></span></div><div class="line alt1"><code class="number">133.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">.addClass(</code><code class="string">"autoAdd"</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.seed);</code></span></span></div><div class="line alt2"><code class="number">134.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">135.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.inputBoxAutoNumber) {</code></span></span></div><div class="line alt2"><code class="number">136.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.updateInputBoxName();</code></span></span></div><div class="line alt1"><code class="number">137.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.updateInputBoxId();</code></span></span></div><div class="line alt2"><code class="number">138.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">139.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.inputBoxAutoId) {</code></span></span></div><div class="line alt2"><code class="number">140.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.updateInputBoxId();</code></span></span></div><div class="line alt1"><code class="number">141.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">142.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.hideFirstOnly &amp;&amp; </code><code class="keyword">this</code><code class="plain">.hideFirstOnly!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">143.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).eq(0).find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.hideFirstOnly).hide();</code></span></span></div><div class="line alt2"><code class="number">144.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).not(</code><code class="string">":first"</code><code class="plain">).find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.hideFirstOnly).show();</code></span></span></div><div class="line alt1"><code class="number">145.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">146.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.showFirstOnly &amp;&amp; </code><code class="keyword">this</code><code class="plain">.showFirstOnly!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">147.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).eq(0).find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.showFirstOnly).show();</code></span></span></div><div class="line alt2"><code class="number">148.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).not(</code><code class="string">":first"</code><code class="plain">).find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.showFirstOnly).hide();</code></span></span></div><div class="line alt1"><code class="number">149.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">150.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.updateRowNumber()</code></span></span></div><div class="line alt1"><code class="number">151.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">.updateOddRowCSS()</code></span></span></div><div class="line alt2"><code class="number">152.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">.updateEvenRowCSS()</code></span></span></div><div class="line alt1"><code class="number">153.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">.updateRowCount();</code></span></span></div><div class="line alt2"><code class="number">154.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="keyword">this</code></span></span></div><div class="line alt1"><code class="number">155.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt2"><code class="number">156.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">ExpandableTable.prototype.addRow=</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">157.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">var</code> <code class="plain">newRow;</code></span></span></div><div class="line alt2"><code class="number">158.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(!</code><code class="keyword">this</code><code class="plain">.maxRow || (</code><code class="keyword">this</code><code class="plain">.maxRow &amp;&amp; $(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).size()&lt;</code><code class="keyword">this</code><code class="plain">.maxRow)){</code></span></span></div><div class="line alt1"><code class="number">159.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.delRowButtons.show();</code></span></span></div><div class="line alt2"><code class="number">160.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">var</code> <code class="plain">lastRow=$(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass+</code><code class="string">":last"</code><code class="plain">,</code><code class="keyword">this</code><code class="plain">.target);</code></span></span></div><div class="line alt1"><code class="number">161.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.newRow=newRow=lastRow.clone();</code></span></span></div><div class="line alt2"><code class="number">162.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">newRow.find(</code><code class="string">"input:text"</code><code class="plain">).val(</code><code class="string">""</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">163.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">newRow.find(</code><code class="string">"textarea"</code><code class="plain">).text(</code><code class="string">""</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">164.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.autoAddRow) newRow.find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).hide();</code></span></span></div><div class="line alt1"><code class="number">165.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">newRow.insertAfter(lastRow);</code></span></span></div><div class="line alt2"><code class="number">166.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.ignoreClass &amp;&amp; </code><code class="keyword">this</code><code class="plain">.ignoreClass!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">167.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">newRow.find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.ignoreClass).each(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">168.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()==</code><code class="string">"input"</code> <code class="plain">&amp;&amp;</code></span></span></div><div class="line alt1"><code class="number">169.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">($(</code><code class="keyword">this</code><code class="plain">).attr(</code><code class="string">"type"</code><code class="plain">).toLowerCase()==</code><code class="string">"text"</code></span></span></div><div class="line alt2"><code class="number">170.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">|| $(</code><code class="keyword">this</code><code class="plain">).attr(</code><code class="string">"type"</code><code class="plain">).toLowerCase()==</code><code class="string">"hidden"</code></span></span></div><div class="line alt1"><code class="number">171.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">)) $(</code><code class="keyword">this</code><code class="plain">).val(</code><code class="string">""</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">172.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">else</code> <code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()==</code><code class="string">"td"</code><code class="plain">) $(</code><code class="keyword">this</code><code class="plain">).html(</code><code class="string">" "</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">173.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">else</code> <code class="keyword">if</code><code class="plain">($(</code><code class="keyword">this</code><code class="plain">).html()!=</code><code class="string">""</code><code class="plain">) $(</code><code class="keyword">this</code><code class="plain">).text(</code><code class="string">""</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">174.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">175.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">176.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">newRow.find(</code><code class="string">"input:hidden"</code><code class="plain">).not(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).val(</code><code class="string">""</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">177.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.hideFirstOnly &amp;&amp; </code><code class="keyword">this</code><code class="plain">.hideFirstOnly!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt2"><code class="number">178.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">newRow.find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.hideFirstOnly).show();</code></span></span></div><div class="line alt1"><code class="number">179.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">180.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.showFirstOnly &amp;&amp; </code><code class="keyword">this</code><code class="plain">.showFirstOnly!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">181.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">newRow.find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.hideFirstOnly).hide();</code></span></span></div><div class="line alt2"><code class="number">182.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">183.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.maxRow &amp;&amp; $(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass).size()&gt;=</code><code class="keyword">this</code><code class="plain">.maxRow) </code></span></span></div><div class="line alt2"><code class="number">184.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">$(</code><code class="string">".addRow"</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.seed).attr(</code><code class="string">"disabled"</code><code class="plain">,</code><code class="keyword">true</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">185.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.target.find(</code><code class="string">"."</code><code class="plain">+</code><code class="keyword">this</code><code class="plain">.cloneClass+</code><code class="string">":first"</code><code class="plain">).closest(</code><code class="string">"tr"</code><code class="plain">).find(</code><code class="string">"*"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">186.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">.each(</code><code class="keyword">function</code><code class="plain">(i,v){</code></span></span></div><div class="line alt1"><code class="number">187.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">($(</code><code class="keyword">this</code><code class="plain">).data(</code><code class="string">"init"</code><code class="plain">)) {</code></span></span></div><div class="line alt2"><code class="number">188.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">var</code> <code class="plain">jObj=newRow.find(</code><code class="string">"*"</code><code class="plain">).eq(i),obj=jObj[0];</code></span></span></div><div class="line alt1"><code class="number">189.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">jObj.data(</code><code class="string">"init"</code><code class="plain">,{});</code></span></span></div><div class="line alt2"><code class="number">190.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">for</code><code class="plain">(</code><code class="keyword">var</code> <code class="plain">k </code><code class="keyword">in</code> <code class="plain">$(</code><code class="keyword">this</code><code class="plain">).data(</code><code class="string">"init"</code><code class="plain">)){</code></span></span></div><div class="line alt1"><code class="number">191.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">jObj.data(</code><code class="string">"init"</code><code class="plain">)[k]=$(</code><code class="keyword">this</code><code class="plain">).data(</code><code class="string">"init"</code><code class="plain">)[k];</code></span></span></div><div class="line alt2"><code class="number">192.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">jObj.data(</code><code class="string">"init"</code><code class="plain">)[k](obj);</code></span></span></div><div class="line alt1"><code class="number">193.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">194.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">195.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">});</code></span></span></div><div class="line alt2"><code class="number">196.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.update();</code></span></span></div><div class="line alt1"><code class="number">197.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">198.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.addCallBack &amp;&amp; $.isFunction(</code><code class="keyword">this</code><code class="plain">.addCallBack))</code></span></span></div><div class="line alt1"><code class="number">199.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">this</code><code class="plain">.addCallBack(newRow);</code></span></span></div><div class="line alt2"><code class="number">200.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">return</code> <code class="plain">newRow</code></span></span></div><div class="line alt1"><code class="number">201.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt2"><code class="number">202.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$.fn.btnAddRow=$.fn.tableAutoAddRow=</code><code class="keyword">function</code><code class="plain">(options,func){</code></span></span></div><div class="line alt1"><code class="number">203.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">var</code> <code class="plain">callBack;</code></span></span></div><div class="line alt2"><code class="number">204.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code> <code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">options==</code><code class="string">"object"</code><code class="plain">)</code></span></span></div><div class="line alt1"><code class="number">205.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">callBack=(func &amp;&amp; $.isFunction(func)) ? func :</code><code class="keyword">null</code><code class="plain">; </code></span></span></div><div class="line alt2"><code class="number">206.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">else</code></span></span></div><div class="line alt1"><code class="number">207.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">callBack=(options &amp;&amp; $.isFunction(options)) ? options :</code><code class="keyword">null</code><code class="plain">; </code></span></span></div><div class="line alt2"><code class="number">208.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">options=$.extend({</code></span></span></div><div class="line alt1"><code class="number">209.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">maxRow:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">210.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">ignoreClass:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">211.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">rowNumColumn:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">212.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">autoAddRow:</code><code class="keyword">false</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">213.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">oddRowCSS:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">214.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">evenRowCSS:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">215.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">inputBoxAutoNumber:</code><code class="keyword">false</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">216.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">inputBoxAutoId:</code><code class="keyword">false</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">217.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">displayRowCountTo:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">218.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">maxRowAttr:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">219.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">hideFirstOnly:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">220.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">showFirstOnly:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">221.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">cloneClass:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">222.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">evenRowAttr:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">223.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">oddRowAttr:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">224.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">rowCountAttr:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt1"><code class="number">225.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">autoNumAttr:</code><code class="keyword">null</code><code class="plain">,</code></span></span></div><div class="line alt2"><code class="number">226.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">autoIdAttr:</code><code class="keyword">null</code></span></span></div><div class="line alt1"><code class="number">227.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">},options);</code></span></span></div><div class="line alt2"><code class="number">228.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.each(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt1"><code class="number">229.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">var</code> <code class="plain">tbl,etbl,cloneClass;</code></span></span></div><div class="line alt2"><code class="number">230.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">options.cloneClass==</code><code class="string">"string"</code> <code class="plain">&amp;&amp; options.cloneClass!=</code><code class="string">""</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">231.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code> <code class="plain">($(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"table"</code><code class="plain">).find(</code><code class="string">"."</code><code class="plain">+options.cloneClass).size()&gt;0){</code></span></span></div><div class="line alt2"><code class="number">232.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">tbl=$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"table"</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">233.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">cloneClass=options.cloneClass;</code></span></span></div><div class="line alt2"><code class="number">234.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code><code class="keyword">else</code> <code class="keyword">if</code> <code class="plain">($(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"."</code><code class="plain">+options.cloneClass).size()&gt;0){</code></span></span></div><div class="line alt1"><code class="number">235.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">tbl=$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"."</code><code class="plain">+options.cloneClass).closest(</code><code class="string">"table"</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">236.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">cloneClass=options.cloneClass;</code></span></span></div><div class="line alt1"><code class="number">237.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">} </code><code class="keyword">else</code><code class="plain">{</code></span></span></div><div class="line alt2"><code class="number">238.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">tbl=(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()==</code><code class="string">"table"</code><code class="plain">)?$(</code><code class="keyword">this</code><code class="plain">):$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"table"</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">239.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">240.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code><code class="keyword">else</code><code class="plain">{</code></span></span></div><div class="line alt1"><code class="number">241.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">tbl=(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()==</code><code class="string">"table"</code><code class="plain">)?$(</code><code class="keyword">this</code><code class="plain">):$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"table"</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">242.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">243.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(options.maxRowAttr &amp;&amp; </code><code class="keyword">typeof</code> <code class="plain">$(</code><code class="keyword">this</code><code class="plain">).attr(options.maxRowAttr)!=</code><code class="string">"undefined"</code><code class="plain">) </code></span></span></div><div class="line alt2"><code class="number">244.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">options.maxRow=$(</code><code class="keyword">this</code><code class="plain">).attr(options.maxRowAttr);</code></span></span></div><div class="line alt1"><code class="number">245.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(options.oddRowAttr &amp;&amp; </code><code class="keyword">typeof</code> <code class="plain">$(</code><code class="keyword">this</code><code class="plain">).attr(options.oddRowAttr)!=</code><code class="string">"undefined"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">246.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">options.oddRowCSS=$(</code><code class="keyword">this</code><code class="plain">).attr(options.oddRowAttr);</code></span></span></div><div class="line alt1"><code class="number">247.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(options.evenRowAttr &amp;&amp; </code><code class="keyword">typeof</code> <code class="plain">$(</code><code class="keyword">this</code><code class="plain">).attr(options.evenRowAttr)!=</code><code class="string">"undefined"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">248.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">options.evenRowCSS=$(</code><code class="keyword">this</code><code class="plain">).attr(options.evenRowAttr);</code></span></span></div><div class="line alt1"><code class="number">249.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(options.rowCountAttr &amp;&amp; </code><code class="keyword">typeof</code> <code class="plain">$(</code><code class="keyword">this</code><code class="plain">).attr(options.rowCountAttr)!=</code><code class="string">"undefined"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">250.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">options.displayRowCountTo=$(</code><code class="keyword">this</code><code class="plain">).attr(options.rowCountAttr);</code></span></span></div><div class="line alt1"><code class="number">251.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(options.autoNumAttr &amp;&amp; </code><code class="keyword">typeof</code> <code class="plain">$(</code><code class="keyword">this</code><code class="plain">).attr(options.autoNumAttr)!=</code><code class="string">"undefined"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">252.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">options.inputBoxAutoNumber=$(</code><code class="keyword">this</code><code class="plain">).attr(options.autoNumAttr);</code></span></span></div><div class="line alt1"><code class="number">253.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(options.autoIdAttr &amp;&amp; </code><code class="keyword">typeof</code> <code class="plain">$(</code><code class="keyword">this</code><code class="plain">).attr(options.autoIdAttr)!=</code><code class="string">"undefined"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">254.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">options.inputBoxAutoId=$(</code><code class="keyword">this</code><code class="plain">).attr(options.autoIdAttr);</code></span></span></div><div class="line alt1"><code class="number">255.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(tbl.size()&gt;0){</code></span></span></div><div class="line alt2"><code class="number">256.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">tbl.data(className)===</code><code class="string">"undefined"</code> <code class="plain">|| tbl.data(className)===</code><code class="keyword">null</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">257.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl=</code><code class="keyword">new</code> <code class="plain">ExpandableTable(tbl,options.maxRow);</code></span></span></div><div class="line alt2"><code class="number">258.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()!=</code><code class="string">"table"</code><code class="plain">)</code></span></span></div><div class="line alt1"><code class="number">259.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">$(</code><code class="keyword">this</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">260.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 140px !important;"><code class="plain">.addClass(</code><code class="string">"addRow"</code><code class="plain">+etbl.seed)</code></span></span></div><div class="line alt1"><code class="number">261.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 140px !important;"><code class="plain">.data(className,etbl);</code></span></span></div><div class="line alt2"><code class="number">262.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code><code class="keyword">else</code><code class="plain">{</code></span></span></div><div class="line alt1"><code class="number">263.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">this</code><code class="plain">.nodeName.toLowerCase()!=</code><code class="string">"table"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">264.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">$(</code><code class="keyword">this</code><code class="plain">)</code></span></span></div><div class="line alt1"><code class="number">265.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 140px !important;"><code class="plain">.addClass(</code><code class="string">"addRow"</code><code class="plain">+tbl.data(className).seed)</code></span></span></div><div class="line alt2"><code class="number">266.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 140px !important;"><code class="plain">.data(className,tbl.data(className));</code></span></span></div><div class="line alt1"><code class="number">267.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">268.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">($(</code><code class="keyword">this</code><code class="plain">).data(className)) {</code></span></span></div><div class="line alt1"><code class="number">269.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl=$(</code><code class="keyword">this</code><code class="plain">).data(className);</code></span></span></div><div class="line alt2"><code class="number">270.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">} </code></span></span></div><div class="line alt1"><code class="number">271.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.maxRow=options.maxRow;</code></span></span></div><div class="line alt2"><code class="number">272.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.maxRow=options.maxRow;</code></span></span></div><div class="line alt1"><code class="number">273.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.ignoreClass=options.ignoreClass;</code></span></span></div><div class="line alt2"><code class="number">274.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.rowNumColumn=options.rowNumColumn;</code></span></span></div><div class="line alt1"><code class="number">275.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.oddRowCSS=options.oddRowCSS;</code></span></span></div><div class="line alt2"><code class="number">276.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.evenRowCSS=options.evenRowCSS;</code></span></span></div><div class="line alt1"><code class="number">277.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.autoAddRow=options.autoAddRow;</code></span></span></div><div class="line alt2"><code class="number">278.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.inputBoxAutoNumber=options.inputBoxAutoNumber;</code></span></span></div><div class="line alt1"><code class="number">279.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.displayRowCountTo=options.displayRowCountTo;</code></span></span></div><div class="line alt2"><code class="number">280.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.hideFirstOnly=options.hideFirstOnly;</code></span></span></div><div class="line alt1"><code class="number">281.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.showFirstOnly=options.showFirstOnly;</code></span></span></div><div class="line alt2"><code class="number">282.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">cloneClass==</code><code class="string">"string"</code> <code class="plain">&amp;&amp; etbl.cloneClass!=cloneClass){</code></span></span></div><div class="line alt1"><code class="number">283.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl.cloneClass=cloneClass;</code></span></span></div><div class="line alt2"><code class="number">284.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">} </code><code class="keyword">else</code> <code class="plain">{</code></span></span></div><div class="line alt1"><code class="number">285.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl.cloneClass=</code><code class="string">"cloneRow"</code><code class="plain">+etbl.seed;</code></span></span></div><div class="line alt2"><code class="number">286.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">287.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.updateRowCount();</code></span></span></div><div class="line alt2"><code class="number">288.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.addCallBack=callBack;</code></span></span></div><div class="line alt1"><code class="number">289.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">};</code></span></span></div><div class="line alt2"><code class="number">290.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">291.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">for</code><code class="plain">(</code><code class="keyword">var</code> <code class="plain">i=0;i&lt;ExpandableTableList.length;i++){</code></span></span></div><div class="line alt2"><code class="number">292.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(!ExpandableTableList[i].goLive){</code></span></span></div><div class="line alt1"><code class="number">293.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">ExpandableTableList[i].live();</code></span></span></div><div class="line alt2"><code class="number">294.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">295.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">296.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt1"><code class="number">297.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">$.fn.btnDelRow=</code><code class="keyword">function</code><code class="plain">(options,func){</code></span></span></div><div class="line alt2"><code class="number">298.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">var</code> <code class="plain">callBack;</code></span></span></div><div class="line alt1"><code class="number">299.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">if</code> <code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">options==</code><code class="string">"object"</code><code class="plain">)</code></span></span></div><div class="line alt2"><code class="number">300.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">callBack=(func &amp;&amp; $.isFunction(func)) ? func :</code><code class="keyword">null</code><code class="plain">; </code></span></span></div><div class="line alt1"><code class="number">301.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">else</code></span></span></div><div class="line alt2"><code class="number">302.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">callBack=(options &amp;&amp; $.isFunction(options)) ? options :</code><code class="keyword">null</code><code class="plain">; </code></span></span></div><div class="line alt1"><code class="number">303.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">options=$.extend({</code></span></span></div><div class="line alt2"><code class="number">304.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">cloneClass:</code><code class="keyword">null</code></span></span></div><div class="line alt1"><code class="number">305.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">},options);</code></span></span></div><div class="line alt2"><code class="number">306.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;">&nbsp;</span></span></div><div class="line alt1"><code class="number">307.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">this</code><code class="plain">.each(</code><code class="keyword">function</code><code class="plain">(){</code></span></span></div><div class="line alt2"><code class="number">308.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">var</code> <code class="plain">etbl,tbl,cloneClass;</code></span></span></div><div class="line alt1"><code class="number">309.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code> <code class="plain">($(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"."</code><code class="plain">+options.cloneClass).size()&gt;0){</code></span></span></div><div class="line alt2"><code class="number">310.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">tbl=$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"."</code><code class="plain">+options.cloneClass).closest(</code><code class="string">"table"</code><code class="plain">);</code></span></span></div><div class="line alt1"><code class="number">311.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">cloneClass=options.cloneClass;</code></span></span></div><div class="line alt2"><code class="number">312.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code><code class="keyword">else</code><code class="plain">{</code></span></span></div><div class="line alt1"><code class="number">313.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">tbl=$(</code><code class="keyword">this</code><code class="plain">).hide().closest(</code><code class="string">"table"</code><code class="plain">);</code></span></span></div><div class="line alt2"><code class="number">314.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">315.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(tbl.size()&gt;0){</code></span></span></div><div class="line alt2"><code class="number">316.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">tbl.data(className)===</code><code class="string">"undefined"</code> <code class="plain">|| tbl.data(className)===</code><code class="keyword">null</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">317.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl=</code><code class="keyword">new</code> <code class="plain">ExpandableTable(tbl);</code></span></span></div><div class="line alt2"><code class="number">318.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(</code><code class="keyword">this</code><code class="plain">)</code></span></span></div><div class="line alt1"><code class="number">319.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">.addClass(</code><code class="string">"delRow"</code><code class="plain">+etbl.seed)</code></span></span></div><div class="line alt2"><code class="number">320.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">.data(className,etbl);</code></span></span></div><div class="line alt1"><code class="number">321.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code><code class="keyword">else</code><code class="plain">{</code></span></span></div><div class="line alt2"><code class="number">322.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(</code><code class="keyword">this</code><code class="plain">)</code></span></span></div><div class="line alt1"><code class="number">323.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">.addClass(</code><code class="string">"delRow"</code><code class="plain">+tbl.data(className).seed)</code></span></span></div><div class="line alt2"><code class="number">324.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 120px !important;"><code class="plain">.data(className,tbl.data(className));</code></span></span></div><div class="line alt1"><code class="number">325.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">326.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">($(</code><code class="keyword">this</code><code class="plain">).data(className)) {</code></span></span></div><div class="line alt1"><code class="number">327.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl=$(</code><code class="keyword">this</code><code class="plain">).data(className);</code></span></span></div><div class="line alt2"><code class="number">328.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl.deleteCallBack=callBack;</code></span></span></div><div class="line alt1"><code class="number">329.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">} </code></span></span></div><div class="line alt2"><code class="number">330.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="keyword">if</code><code class="plain">(!(</code><code class="keyword">typeof</code> <code class="plain">etbl.cloneClass==</code><code class="string">"string"</code></span></span></div><div class="line alt1"><code class="number">331.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">&amp;&amp; etbl.cloneClass!=</code><code class="string">""</code><code class="plain">)){</code></span></span></div><div class="line alt2"><code class="number">332.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl.cloneClass=</code><code class="string">"cloneRow"</code><code class="plain">+etbl.seed;</code></span></span></div><div class="line alt1"><code class="number">333.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"tr"</code><code class="plain">).addClass(</code><code class="string">"cloneRow"</code><code class="plain">+etbl.seed);</code></span></span></div><div class="line alt2"><code class="number">334.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">} </code><code class="keyword">else</code> <code class="keyword">if</code><code class="plain">(</code><code class="keyword">typeof</code> <code class="plain">cloneClass==</code><code class="string">"string"</code><code class="plain">){</code></span></span></div><div class="line alt1"><code class="number">335.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl.cloneClass=cloneClass;</code></span></span></div><div class="line alt2"><code class="number">336.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">} </code><code class="keyword">else</code> <code class="plain">{</code></span></span></div><div class="line alt1"><code class="number">337.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">etbl.cloneClass=</code><code class="string">"cloneRow"</code><code class="plain">+etbl.seed;</code></span></span></div><div class="line alt2"><code class="number">338.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 100px !important;"><code class="plain">$(</code><code class="keyword">this</code><code class="plain">).closest(</code><code class="string">"tr"</code><code class="plain">).addClass(</code><code class="string">"cloneRow"</code><code class="plain">+etbl.seed);</code></span></span></div><div class="line alt1"><code class="number">339.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">340.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">etbl.update();</code></span></span></div><div class="line alt1"><code class="number">341.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">342.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">});</code></span></span></div><div class="line alt1"><code class="number">343.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="keyword">for</code><code class="plain">(</code><code class="keyword">var</code> <code class="plain">i=0;i&lt;ExpandableTableList.length;i++){</code></span></span></div><div class="line alt2"><code class="number">344.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="keyword">if</code><code class="plain">(!ExpandableTableList[i].goLive){</code></span></span></div><div class="line alt1"><code class="number">345.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 80px !important;"><code class="plain">ExpandableTableList[i].live();</code></span></span></div><div class="line alt2"><code class="number">346.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 60px !important;"><code class="plain">}</code></span></span></div><div class="line alt1"><code class="number">347.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 40px !important;"><code class="plain">}</code></span></span></div><div class="line alt2"><code class="number">348.</code><span class="content"><code class="spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><span class="block" style="margin-left: 20px !important;"><code class="plain">};</code></span></span></div><div class="line alt1"><code class="number">349.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">}})(jQuery);</code></span></span></div><div class="line alt2"><code class="number">350.</code><span class="content"><span class="block" style="margin-left: 0px !important;"><code class="plain">&lt;/script&gt;</code></span></span></div></div></div><br>
<h2>Download the plugin</h2>
<p>You can download the plugin from the latest versions in the following links:</p>
<ol>
<li>Version 1.02 (latest) <a href="http://www.examplet.buss.hk/download/download.php?plugin=table.addrow">source code</a></li>
<li>Version 1.01 (latest) <a href="http://www.examplet.buss.hk/download/download.php?plugin=table.addrow.1.01">source code</a></li>
<li>Version 1.0 <a href="http://www.examplet.buss.hk/download/download.php?plugin=table.addrow.1.0">old source code</a></li>
</ol>
<p></p>
<h2>Copyright and licensing</h2>
<p>All the plugin source codes and the examples are copyright of <a href="mailto:cloudgen@ymail.com">C. F., Wong</a><br>
Please feel free to use any code listed in this page, they are licensed under the MIT License:<br>
http://www.opensource.org/licenses/mit-license.php</p>
<script type="text/javascript" src="Dokumentasi.php_files/jquery_003.js"></script>
<script type="text/javascript" src="Dokumentasi.php_files/jquery.js"></script>
<script type="text/javascript" src="Dokumentasi.php_files/jquery_002.js"></script>
<script type="text/javascript">
(function($){
$(document).ready(function(){
	$(".useDefault").addDefaultText();
	$(".addRow").btnAddRow();
	$(".addRow-Max3").btnAddRow({maxRow:3});
	$(".addRow-ignoreClass").btnAddRow({maxRow:5,ignoreClass:"noClone"});
	$(".autoTable").tableAutoAddRow({autoAddRow:true});
	$(".alternativeRow").btnAddRow({oddRowCSS:"oddRow",evenRowCSS:"evenRow"});
	$(".delRow").btnDelRow();
	$(".delRow-callBack").btnDelRow(function(row){
		if(row) alert(row.html());
	});
	$(".addRow-callBack").btnAddRow({maxRow:3},function(row){
		if(row) alert(row.html());
	});
	$(".addComment").btnAddRow({rowNumColumn:"rowNumber"});
});
})(jQuery);
</script>
<script type="text/javascript" src="Dokumentasi.php_files/shCore.js"></script>
<script type="text/javascript" src="Dokumentasi.php_files/shBrushJScript.js"></script>
<script type="text/javascript" src="Dokumentasi.php_files/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="Dokumentasi.php_files/shCore.css">
<link type="text/css" rel="stylesheet" href="Dokumentasi.php_files/shThemeDefault.css">
<script type="text/javascript">
	SyntaxHighlighter.config.clipboardSwf = 'js/clipboard.swf';
	SyntaxHighlighter.all();
</script>
<div class="ug"></div>
<hr style="color:#862;height:2px;" align="center" width="90%">
<span class="footnote">Copyright 2011 <a href="http://www.cloudgen.w0ng.hk/">Cloudgen</a></span>

</body></html>